package com.est.dase.sms;

import android.content.Context;

import com.est.dase.WAYListener;

/**
*
* @author Fernando Geraldes, Jaime Santos, Jorge Silva
*
*/
public class SMSReceiverHandler implements WAYListener {

	WAYListener listener;
	
	private static SMSReceiverHandler instance = null;
	
	
	protected SMSReceiverHandler(){
		
	}
	
	public static SMSReceiverHandler getInstance() {
      if(instance == null) {
         instance = new SMSReceiverHandler();
      }
      return instance;
	}
	
	public void registListener(WAYListener list) 
	{
		this.listener =  list;
	}

	public void received(String from, String message, Context context) {
		this.listener.received(from, message, context);
	}

	public WAYListener getListener() {
		return listener;
	}
	
}
